package com.space.base;

/**
 * @author zhaixianhao
 * @description 常用状态码
 *
 */
public class ErrorCode {

    /**
     * 系统错误码
     */

    public static final Integer ERROR = 500;

    public static final String ERROR_Msg = "系统异常";
    public static final String RE_CODE_DATABASE_ERROR = "100";

    public static final String RE_MSG_DATABASE_ERROR = "网络连接异常";

    public static final String RE_CODE_OBJECT_NULL_ERROR = "101";
    public static final String RE_MSG_OBJECT_NULL_ERROR = "查询对象为空";

    public static final String RE_CODE_STR_NULL_ERROR = "102";
    public static final String RE_MSG_STR_NULL_ERROR = "内容不能为空";

    public static final String RE_CODE_STR_LOGIN_ERROR = "103";
    public static final String RE_MSG_STR_LOGIN_ERROR = "请登录";

    public static final String RE_CODE_NOT_HAVE_OBJECT_ERROR = "104";
    public static final String RE_MSG_NOT_HAVE_OBJECT_ERROR = "操作的内容不存在";

    public static final String RE_CODE_SERVICE_BUSY = "105";
    public static final String RE_MSG_SERVICE_BUSY = "服务器繁忙，请稍后再试!";

    public static final String RE_CODE_HYSTRIX = "106";
    public static final String RE_MSG_HYSTRIX = "触发熔断机制";


    //数据不存在
    public static final String RE_DATA_NOT_EXIST_ERROR_CODE = "3301";
    public static final String RE_DATA_NOT_EXIST_ERROR_MSG = "数据不存在！";

    public static final String RE_STUDENT_NOT_EXIST_ERROR_CODE = "3301";
    public static final String RE_STUDENT_NOT_EXIST_ERROR_MSG = "学生不存在！";

    //数据已经存在
    public static final String RE_DATA_EXIST_ERROR_CODE = "3302";
    public static final Integer User_Passwod_CODE = 401;
    public static final String User_Passwod__MSG = "用户名或者密码不对！";

    public static final String RE_CODE_NO_HAVE_OBJECT = "3303";
    public static final String RE_MSG_NO_HAVE_OBJECT = "操作对象不存在";

    public static final String RE_CODE_FAIL = "500";
    public static final String RE_MSG_FAIL = "失败";

    /**
     * 成功的返回码
     */
    public static final Integer RE_CODE_SUCCESS = 200;
    public static final String RE_MSG_SUCCESS = "成功";

    public static final String RE_CODE_PARAMETER_ERROR = "300";
    public static final String RE_MSG_PARAMETER_ERROR = "参数错误";

    public static final String RE_CODE_PARAMETER_FORMAT_ERROR = "301";


    public static final String RE_CODE_NO_HAVE_TOKEN = "1000";
    public static final String RE_MSG_NO_HAVE_TOKEN = "无token，请登录";

    public static final String RE_CODE_USER_ERROR = "1001";
    public static final String RE_MSG_USER_ERROR = "登录失效";

    public static final String RE_CODE_NO_HAVE_ACCOUNT = "1002";
    public static final String RE_MSG_NO_HAVE_ACCOUNT = "账号不存在";

    public static final String RE_CODE_LOGIN_EXPIRED = "1003";
    public static final String RE_MSG_LOGIN_EXPIRED = "登录已过期,请重新登录!";

    public static final String RE_CODE_HAVE_ACCOUNT = "1004";
    public static final String RE_MSG_HAVE_ACCOUNT = "账号已存在";

    public static final String RE_CODE_PASSWORD_ERROR = "1005";
    public static final String RE_MSG_PASSWORD_ERROR = "账号密码错误";

    public static final String RE_CODE_NO_ROLE = "1006";
    public static final String RE_MSG_NO_ROLE = "权限不足，不能操作";

    public static final String RE_CODE_JWT_NOT_MATCH = "1007";
    public static final String RE_MSG_JWT_NOT_MATCH = "登录无效，请重新登录";

    public static final String RE_CODE_OLD_PASSWORD_ERROR = "1008";
    public static final String RE_MSG_OLD_PASSWORD_ERROR = "原密码错误";

    public static final String RE_CODE_ONLY_ONE_LOGIN = "1009";
    public static final String RE_MSG_ONLY_ONE_LOGIN = "你被挤下线了";

    //导出
    public static final String RE_NO_DATA_EXPORT_CODE = "1010";
    public static final String RE_NO_DATA_EXPORT_MSG = "无数据可导出！";

    //账户余额不足
    public static final String ACCOUNT_BALANCE_NOT_ENOUGH_CODE = "1011";
    public static final String ACCOUNT_BALANCE_NOT_ENOUGH_MSG = "账户余额不足！";

    //微信授权
    public static final String WX_AUTH_ERROR_CODE = "1012";
    public static final String WX_AUTH_ERROR_MSG = "微信授权失败！";

    //删除七牛云文件失败
    public static final String RE_CODE_DELETE_QN_FILE_FAIL = "1013";
    public static final String RE_MSG_DELETE_QN_FILE_FAIL = "删除七牛云文件失败！";

    //文件容量已达上限
    public static final String RE_CODE_FILE_SIZE_ALREADY_OVERFLOW = "1014";
    public static final String RE_MSG_FILE_SIZE_ALREADY_OVERFLOW = "文件容量已达上限！";


    /**
     * 手机号已经被使用
     */
    public static final String RE_CODE_PHONE_ERROR = "1020";
    public static final String RE_MSG_PHONE_ERROR = "该手机已被使用";
    /**
     * 发送过于频繁，请稍后再试
     */
    public static final String RE_CODE_PHONE_LIMIT = "1021";
    public static final String RE_MSG_PHONE_LIMIT = "发送过于频繁，请稍后再试";
    /**
     * 五分钟内发送次数超过上限
     */
    public static final String RE_CODE_PHONE_LIMIT5 = "1022";
    public static final String RE_MSG_PHONE_LIMIT5 = "五分钟内发送次数超过上限";
    /**
     * 24小时内发送次数超过上限
     */
    public static final String RE_CODE_PHONE_LIMIT_DAY = "1023";
    public static final String RE_MSG_PHONE_LIMIT_DAY = "24小时内发送次数超过上限";
    /**
     * 一小时内发送次数超过上限
     */
    public static final String RE_CODE_PHONE_LIMIT_HOUR = "1024";
    public static final String RE_MSG_PHONE_LIMIT_HOUR = "1小时内发送次数超过上限";
    /**
     * 一天内发送次数超过上限
     */
    public static final String RE_CODE_PHONE_LIMIT_ONE_DAY = "1025";
    public static final String RE_MSG_PHONE_LIMIT_ONE_DAY = "一天内发送次数超过上限";
    /**
     * 验证码发送失败
     */
    public static final String RE_CODE_PHONE_PUSH_FAIL = "1026";
    public static final String RE_MSG_PHONE_PUSH_FAIL = "验证码发送失败";
    /**
     * 验证码错误
     */
    public static final String RE_CODE_PHONE_CODE_FAIL = "1027";
    public static final String RE_MSG_PHONE_CODE_FAIL = "验证码错误";
    /**
     * 手机输入错误
     */
    public static final String RE_CODE_MOBILE_MOBILE_NULL = "1028";
    public static final String RE_MSG_MOBILE_MOBILE_NULL = "手机输入号错误";
    /**
     * 手机号已设置防骚扰
     */
    public static final String RE_CODE_PHONE_FSR_FAIL = "1029";
    public static final String RE_MSG_PHONE_FSR_FAIL = "验证码发送失败,手机号已设置防骚扰";
    public static final String RE_MSG_MOBILE_MOBILE = "手机号未获取短信";

    /**
     * LOTTERY 抽奖 错误 1100-1199
     */
    public static final String RE_CODE_LOTTERY_ADD_ERROR = "1100";
    public static final String RE_MSG_LOTTERY_ADD_ERROR = "抽奖插入失败";
    public static final String RE_CODE_LOTTERY_UPDATE_ERROR = "1101";
    public static final String RE_MSG_LOTTERY_UPDATE_ERROR = "抽奖更新失败";
    public static final String RE_CODE_LOTTERY_REMOVE_ERROR = "1102";
    public static final String RE_MSG_LOTTERY_REMOVE_ERROR = "抽奖删除失败";
    public static final String RE_CODE_LOTTERY_PEOPLE_ERROR = "1103";
    public static final String RE_MSG_LOTTERY_PEOPLE_ERROR = "获奖人数应该为嘉宾的整数倍";
    public static final String RE_CODE_LOTTERY_START_ERROR = "1104";
    public static final String RE_MSG_LOTTERY_START_ERROR = "抽奖失败";
    public static final String RE_CODE_LOTTERY_PRESENTER_ERROR = "1105";
    public static final String RE_MSG_LOTTERY_PRESENTER_ERROR = "嘉宾数量不能为0";
    public static final String RE_CODE_LOTTERY_WINNER_ERROR = "1106";
    public static final String RE_MSG_LOTTERY_WINNER_ERROR = "获奖者数量不能为0";
    public static final String RE_CODE_LOTTERY_NUMBER_ERROR = "1107";
    public static final String RE_MSG_LOTTERY_NUMBER_ERROR = "已全部抽完";
    public static final String RE_CODE_LOTTERY_PLACE_ERROR = "1108";
    public static final String RE_MSG_LOTTERY_PLACE_ERROR = "会场ID不能为0";
    public static final String RE_CODE_PASSWORD_REPEAT_ERROR = "1109";
    public static final String RE_MSG_PASSWORD_REPEAT_ERROR = "新旧密码重复";
    public static final String RE_CODE_PASSWORD_UPDATE_ERROR = "1110";
    public static final String RE_MSG_PASSWORD_UPDATE_ERROR = "密码修改失败";
    public static final String RE_CODE_LOTTERY_TOO_WINNER_ERROR = "1111";
    public static final String RE_MSG_LOTTERY_TOO_WINNER_ERROR = "总获奖人数不能超过参会人员数量";
    public static final String RE_CODE_LOTTERY_PAYMENT_ERROR = "1112";
    public static final String RE_MSG_LOTTERY_PAYMENT_ERROR = "发放存疑，请查看详情";
    public static final String RE_CODE_PARTICIPANT_NUMBER_ERROR = "1113";
    public static final String RE_MSG_PARTICIPANT_NUMBER_ERROR = "已全部发放";
    public static final String RE_CODE_TIME_ERROR = "1114";
    public static final String RE_MSG_TIME_ERROR = "已进入锁定时间，无法更改";
    public static final String RE_CODE_ANNUAL_TIME_ERROR = "1115";
    public static final String RE_MSG_ANNUAL_TIME_ERROR = "未到抽奖时间，暂不能开奖";
    public static final String RE_CODE_SKIP_ERROR = "1116";
    public static final String RE_MSG_SKIP_ERROR = "请按照顺序抽奖";

    /**
     * USER 会场人员 错误 2000-2099
     */
    public static final String RE_CODE_USER_ADD_ERROR = "2000";
    public static final String RE_MSG_USER_ADD_ERROR = "人员添加失败";
    public static final String RE_CODE_USER_UPDATE_ERROR = "2001";
    public static final String RE_MSG_USER_UPDATE_ERROR = "人员更新失败";
    public static final String RE_CODE_USER_REMOVE_ERROR = "2002";
    public static final String RE_MSG_USER_REMOVE_ERROR = "人员删除失败";
    public static final String RE_CODE_PRESENTER_ADD_ERROR = "2003";
    public static final String RE_MSG_PRESENTER_ADD_ERROR = "嘉宾添加失败";
    public static final String RE_CODE_USER_HAS_USED_ERROR = "2004";
    public static final String RE_MSG_USER_HAS_USED_ERROR = "该用户已存在于抽奖轮次或抽奖结果中，无法删除";


    /**
     * 会场不存在
     */
    public static final String RE_PLACE_NOT_EXIST_ERROR_CODE = "4001";
    public static final String RE_PLACE_NOT_EXIST_ERROR_MSG = "会场不存在！";
    /**
     * 人员类型
     */
    public static final String RE_TYPE_ERROR_CODE = "4002";
    public static final String RE_TYPE_ERROR_MSG = "类型type传值错误";
    /**
     * 会场奖池oaAccount重复
     */
    public static final String RE_PLACE_OA_ACCOUNT_HAVE_ERROR_CODE = "4003";
    public static final String RE_PLACE_OA_ACCOUNT_HAVE_ERROR_MSG = "会场奖池OA账号重复";
    /**
     * 会场虚拟红包池未设置
     */
    public static final String RE_PLACE_OA_ACCOUNT_NOT_EXIST_ERROR_CODE = "4004";
    public static final String RE_PLACE_OA_ACCOUNT_NOT_EXIST_ERROR_MSG = "会场虚拟红包池未设置";

    /**
     * 发放珑珠功能暂未开放
     */
    public static final String RE_BONUS_PAYMENT_NOT_OPEN_ERROR_CODE = "4005";
    public static final String RE_BONUS_PAYMENT_NOT_OPEN_ERROR_MSG = "发放珑珠功能暂未开放";

    /**
     * 会场抽奖时间设置
     */
    public static final String RE_PLACE_ANNUAL_NOT_SET_ERROR_CODE = "4006";
    public static final String RE_PLACE_ANNUAL_NOT_SET_ERROR_MSG = "请设置抽奖时间";

    /**
     * FILE 文件 错误 5001-5099
     */
    public static final String RE_CODE_FILE_PART_NOT_IMPORTED = "5003";
    public static final String RE_MSG_FILE_PART_NOT_IMPORTED = "部分数据未导入";
    public static final String RE_CODE_FILE_ALL_NOT_IMPORTED = "5003";
    public static final String RE_MSG_FILE_ALL_NOT_IMPORTED = "全部数据未导入";
    public static final String RE_CODE_FILE_FORMAT_ERROR = "5004";
    public static final String RE_MSG_FILE_FORMAT_ERROR = "导入文件不符合模板要求";
    public static final String RE_CODE_FILE_NAME_ERROR = "5005";
    public static final String RE_MSG_FILE_NAME_ERROR = "文件格式不正确！";
    public static final String RE_CODE_FILE_UPLOAD_SIZE_TOO_LARGE = "5006";
    public static final String RE_MSG_FILE_UPLOAD_SIZE_TOO_LARGE = "文件过大！";

}
